﻿<!--#include file="utf-8.asp"-->
<!--#include file="conn.asp"-->
<!--#include file="config.asp" -->
<%
'######################################
' 安科外贸网站管理系统中英文双语版
' anke Enterprise Web Site Management System
' 官方网站：http://www.shejifang.org
' 联系QQ：357052954
' 淘宝店： http://shejifang.taobao.com
'######################################
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><%=config("etitle")%></title>
<meta name="keywords" content="<%=config("ekeywords")%>" />
<meta name="description" content="<%=config("edescription")%>" />
<link href="images/style.css" type="text/css" rel="stylesheet" />
</head>
<body>
<!--#include file="eheader.asp" -->
<table width="913" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
  <tr>
    <td width="193" valign="top">
     <!--#include file="eleft.asp"-->
     <!--#include file="ehot.asp"-->
     </td>
    <td width="720" valign="top">
    <table width="720" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td>
        <table width="720" height="260" border="0" cellpadding="0" cellspacing="0">
	<tr>
		<td width="518" height="260" rowspan="3">
        <!--焦点广告-->
        <script type=text/javascript>
        <!--
        var focus_width=518//图片宽
        var focus_height=260//图片高
        var text_height=0//设置显示文字标题高度,最佳为20（如果不显示标题值设为0即可）
        var swf_height = focus_height+text_height
        //var pics=""
        //var links=""
        //var texts=""
        <%
		set db=conn.execute("select top 5 * from [flash] order by px_id asc")'默认显示五条最新广告
		if db.eof then
		response.write "var pics=''"
		response.write "var links=''"
		response.write "var texts=''"
		else
			i=0
			do while not db.eof
				 pics=pics&"|"&db("img")
				 links=links&"|"&db("link")
				 texts=texts&"|"&db("title")
				db.moveNext
				i=i+1
			loop
            response.write "var pics='"&right(pics,len(pics)-1)&"'"&vbcrlf
            response.write "var links='"&right(links,len(links)-1)&"'"&vbcrlf
            response.write "var texts='"&right(texts,len(texts)-1)&"'"&vbcrlf
            end if
		%>
        document.write('<object ID="focus_flash" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="'+ focus_width +'" height="'+ swf_height +'">');
        document.write('<param name="allowScriptAccess" value="sameDomain"><param name="movie" value="images/adplay.swf"><param name="quality" value="high"><param name="bgcolor" value="#FFFFFF">');
        document.write('<param name="menu" value="false"><param name=wmode value="opaque">');
        document.write('<param name="FlashVars" value="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'">');
        document.write('<embed ID="focus_flash" src="images/adplay.swf" wmode="opaque" FlashVars="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'" menu="false" bgcolor="#C5C5C5" quality="high" width="'+ focus_width +'" height="'+ swf_height +'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');document.write('</object>'); 
        //-->
</script>
        </td>
		<td width="202" height="30" align="right" background="images/enew_01.jpg"><a href="eNewsMore.asp?id=1"><img src="images/more.gif" width="41" height="13" border="0" /></a></td>
	</tr>
	<tr>
		<td width="202" height="110" valign="top">
<!--公司新闻-->
<% 
set newrs=server.createobject("adodb.recordset") 
newsql="select top 4 * from [news] where ssfl=1  order by id desc  " '如修改了新闻类别,请在这里做相应修改.
newrs.open newsql,conn,1,1 
if newrs.eof and newrs.bof then
response.Write("暂无公司新闻!")
else
end if
response.write"<div class='box12'>"
response.write"<ul>"
do while not newrs.eof
response.Write("<li><a href=""eshownews.asp?/" & newrs("id") &".html"">"  & left(RemoveHTML(newrs("etitle")),24) & "</a> " & "</li>")
newrs.movenext 
loop 
response.write"</ul>"
response.write"<div>"
newrs.close
set newrs=nothing
%>
        </td>
	</tr>
    
	<tr>
		<td width="202" height="120" background="images/Contact.jpg">
        <div id="contact">
        <p>TEL：<%=config("tel")%></p>
        <p>FAX：<%=config("fax")%></p>
        <p>E-mail：<%=config("mail")%></p>
        </div>
        </td>
	</tr>
    
</table>
        </td>
      </tr>
      <tr>
        <td>
        <table width="720" border="0" cellpadding="0" cellspacing="0">
	<tr>
		<td width="720" height="35">
			<img src="images/right_02_01.jpg" width="720" height="35"></td>
	</tr>
	<tr>
	  <td valign="top" background="images/right_02_02.jpg">
          <!--产品开始循环-->
          <table width="100%" border="0" cellpadding="0" cellspacing="0">
          
          <tr>
            <td align="center" valign="top">
            
<%	
set rs=server.createobject("adodb.recordset") 
exec="select * from shop where homeshow = 1 order by px_id asc,id desc" 
rs.open exec,conn,1,1 
if rs.eof then
response.Write "&nbsp;暂无产品！"
end if

For i=1 To product_num
if rs.eof then exit for
%>
<div style="float:left; margin:10px 0px 0px 10px;">
<table width="150" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td><div><a href="eshowshop.asp?/<%=rs("id")%>.html" title="<%=rs("etitle")%>" class="img"><img src="<%=rs("img")%>" width="150" height="150" /></a></div>    </td>
  </tr>
  <tr>
    <td height="30"><div align="center" style="font-weight:bold"><a href="eshowshop.asp?/<%=rs("id")%>.html" title="<%=rs("etitle")%>"><%=left(rs("etitle"),40)%></a></div></td>
  </tr>
</table>
</div>
<%
rs.movenext 
next
rs.close
set rs=nothing
%>
</td>
          </tr>
        </table>
        </td>
	  </tr>
	<tr>
		<td width="720" height="15" valign="top"><img src="images/right_02_03.jpg" width="720" height="7" /></td>
	</tr>
</table>
        </td>
      </tr>
    </table>
    </td>
  </tr>
</table>
<!--#include file="efoot.asp" -->
</body>
</html>
